package com.zjx.eduorder.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zjx.eduorder.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author testjava
 * @since 2025-02-22
 */
public interface OrderService extends IService<Order> {
    //1 生成订单的方法
    String createOrders(String courseId, String memberIdByJwtToken);

    void pageQuery(Page<Order> pageParam, Order order);

    List<Order> selectByMemberId(String memberId);

    Boolean isBoughtByCourseId(String courseId, String memberId);

    boolean removeById(String orderId, String memberId);
}
